home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 247 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. From: "Charles F. McDevitt" <Chuck.McDevitt@elsegundoca.attgis.com>
  2. Message-ID: <3112531A.3410@ElSegundoCA.ATTGIS.COM>
  3. X-Original-Date: Fri, 02 Feb 1996 10:08:26 -0800
  4. Path: in2.uu.net!bounce-back
  5. Date: 03 Feb 96 03:45:03 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: #ifdef XXXX
  9. Organization: AT&T Global Information Solutions, San Diego, CA
  10. References: <1996Feb1.092058.4745@iiasa.ac.at>
  11. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMRLaTuEDnX0m9pzZAQE4rQF9HEXOzk/H1TFTxI7JmMcMwvhBvoqGhHh3
  14.     AcWYjzdQ18KjQbYNTptBWY1la+Iw3mXc
  15.     =R4k/
  16.  
  17. Marek MAKOWSKI wrote:
  18. > Would not it be sensible to add to the preprocessing a directive
  19. > that would stop processing the current file ? Something like
  20. > #ifdef XXXX
  21. > #exit
  22. > this would safe processing (sometimes very long) file in the common
  23. > situations:
  24. > #ifdef XXXX
  25. > // a (possibly) long header file hear
  26. > #endif  /* ifdef XXXX*/
  27.  
  28. Wouldn't it be better to update the C++ standard so the
  29. default is that include files only get included once, and the
  30. compiler/preprocessor keeps track of which ones it's already 
  31. seen.  Then we wouldn't have to mess with these ugly #ifdefs
  32. to make include files only be included once.
  33. ---
  34. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  35.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  36.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  37.